import { get, post } from '@/utils/request'

export const roomList = (query) => {
  return get('/en/conferenceRoom/list', query)
}

export const roomAdd = (query) => {
  return post('/en/conferenceRoom/add', query)
}

export const roomEdit = (query) => {
  return post('/en/conferenceRoom/edit', query)
}

export const roomDel = (query) => {
  return get('/en/conferenceRoom/delete', query)
}

export const roomView = (query) => {
  return get('/en/conferenceRoom/queryById', query)
}

export const roomExam = (query) => {
  return post('/en/conferenceRoom/enExamine', query)
}

export const enableOrDisable = (query) => {
  return get('/en/conferenceRoom/enableOrDisable', query)
}

//企业列表
export const companyList = (query) => {
  return get('/en/enInfo/no_page_list', query)
}
export const rebuildRoom = (query) => {
  return get('/en/conferenceRoom/rebuildRoom', query)
}
//会议室无分页列表
export const roomNoPageList = (query) => {
  return get('/en/conferenceRoom/no_page_list', query)
}